//// Copyright (c) 2022 NetEase, Inc. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.

import Foundation

@objcMembers
public class NETeamService: NSObject, ChatServiceDelegate {
    public static let shared = NETeamService()
    
    public var sitEnvironment: Bool = false
    
    override private init() {
        super.init()
    }
    
    /// 注册 NETeamUIKit 初始化协议
    /// - Parameter params: 初始化参数
    public func setupInit(_ params: [String: Any]?) {
        registerRouter(params)
    }
    
    /// 注册路由
    /// - Parameter param: 参数
    public func registerRouter(_ param: [String: Any]?) {
        if let isFun = param?["isFun"] as? Bool, isFun {
            TeamRouter.registerFun()
        } else {
            TeamRouter.register()
        }
    }
    
    public func setIfSitEnvironment(_ sit: Bool) {
        self.sitEnvironment = sit
    }
}
